package ooday01;

public class StudentTest {


    public static void main(String[] args) {
        Student zg = new Student();
        zg.name="张光";
        zg.stuId = "001";
        zg.className = "jsd2309";
        zg.age = 22;
        zg.study();
        zg.sayHi();
        zg.palyWith("小妞");

        Student ll = new Student();
        ll.name="李林";
//        ll.stuId = "001";
//        ll.className = "jsd2309";
        ll.age = 23;
        ll.study();
        ll.sayHi();
        ll.palyWith("小妞");

        String s1 = new String("2");
//        s1.intern();
        String s2 = "2";
//        s2.intern();
//        s1=s2;
        System.out.println(s1==s2);



    }
}
